
function $init(){
	//AJAX异步请求JSON
	var myJson = $.ajax({
		url : "/forward/view/basic_json.go",
		async : false
	}).responseText;
	var myJsonObj = jsonParse(myJson);
	//省份
	if($("[name='province']").children().length==1){
		for(var province in myJsonObj) {
			var option = "<option value=" + province + ">" + province + "</option>";
			$("[name='province']").append(option);
		}
	}
	//省份绑定事件
	$("[name='province']").bind("change", function() {
		//初始化城市选择项
		$("[title='city']").remove();
		//初始化县区选择项
		$("[title='county']").remove();
		var province = $("[name='province']").val();
		//市级
		for(var city in myJsonObj[province]) {
			var option = "<option value=" + city + " title='city'>" + city + "</option>";
			$("[name='city']").append(option);
		}
	});
	//城市事件绑定
	$("[name='city']").bind("change", function() {
		$("[title='county']").remove();
		//获取省份
		var province = $("[name='province']").val();
		//获取城市
		var city = $("[name='city']").val();
		//市级
		for(var index in myJsonObj[province][city]) {
			var county = myJsonObj[province][city][index];
			var option = "<option value=" + county + " title='county'>" + county + "</option>";
			$("[name='county']").append(option);
		}
	});
	
}